package com.wzs.easytobuy.mapper;

import com.wzs.easytobuy.model.Address;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface AddressMapper {
    int deleteByPrimaryKey(String id);

    int insert(Address record);

    int insertSelective(Address record);

    Address selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Address record);

    int updateByPrimaryKey(Address record);

    Address selectAddressByUid(String userId, int flag);

    int updateById(String id, String add, String phone, String fullName, int postCode, String email);

    Address selectByAidAndPc(String id, int postCode);

}